home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3372 < prev    next >
Encoding:
Text File  |  1996-08-06  |  2.6 KB  |  95 lines

  1. Path: sn.no!usenet
  2. From: larsit@sn.no (Lars-Inge Tonnessen)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: visual c++ 1.5 compiler not working in windows 95
  5. Date: Tue, 23 Jan 1996 16:07:20 GMT
  6. Organization: SN Internett
  7. Message-ID: <4e3117$hvc@hasle.sn.no>
  8. References: <4ducds$aei@ixnews6.ix.netcom.com>
  9. NNTP-Posting-Host: stavanger2-ppp16.oslo.net
  10. X-Newsreader: Forte Free Agent 1.0.82
  11.  
  12. rykk <rykk@ix.netcom.com> wrote:
  13.  
  14. >when i try to compile "hello world" the most basic program, my compiler tells me i 
  15. >have over 102 errors and quits.  the errors it lists makes little sense. just to 
  16. >verify that i am doing it right, here is what i do:
  17. >open msvc
  18. >open new,
  19. >write
  20.  
  21.  
  22. >#include <iostream.h>
  23. >void main()
  24. >{
  25. >cout << "hello world\n";
  26. >}
  27.  
  28. >then i pull down the "project" item and chose compile am i doing it right?
  29. >thank you!
  30.  
  31. NO!!!!  You are NOT doing it right!!!!
  32.  
  33. Where have you got your Visual C++ ????  Have you copied it??  Have
  34. you ever open a Visual C++ book??  Do you own Visual C++???
  35.  
  36. Anyway I give a shi... here is the solution:
  37.  
  38. Microsoft Visual C++ 1.5x
  39. *****************************
  40.  
  41. 1) Define a project.
  42. In your menu select: Project and New.
  43.  
  44. The New Project dialog box appears.  Enter a project name.  "Hello" 
  45.  
  46. 2) Select Project Type:
  47. Make sure that "Use Microsoft Foundation Classes" check box is in
  48. position OFF.  Click on  "Project Type" and select
  49. "QuickWinApplication (.EXE)". And OK.
  50.  
  51. 3) Edit - HELLO.MAK appears.
  52. "Close"
  53.  
  54. 4) In the menu,  "File" and "New".
  55.  
  56. 5) Write your standard ANCI C++ program.
  57.  
  58. 6) "File" and "Save As".
  59. Enter a File Name "Test.cpp" & Ok.
  60.  
  61. 7)  "Project" and "Edit"
  62. Click on "TEST.CPP" in the file list.  Click on "Add".  Now you should
  63. find "Test.cpp" under Files in project.
  64.  
  65. 8) "Close".
  66.  
  67. 9) "Project" and "Rebuild All".  If any questions appears, make sure
  68. it's  "YES".  
  69.  
  70. 9a) If (errors) {debug } 
  71.       else ...
  72.  
  73. 10) "Project" and "EXECUTE  HELLO.EXE".
  74. If any questions appaers.... "YES".
  75.  
  76. Please note that this is NOT the way to make a 100% Windows program.
  77. If you have a Pro edition, you will be able to make DOS programs the
  78. way you code.
  79.  
  80. Buy a book.... (and the compiler, books are included!!!!)...
  81. If you have bought it, you should have all the books needed.  
  82.  
  83. PLEASE NOTE THAT  PROGRAM DEVELOPERS ARE MAKING A LIVING OF
  84. PROGRAMMING!!!  IF YOU COPY A PROGRAM, YOU ARE ONLY CHEATING ON YOUR
  85. SELF.  IF WE DO NOT GET PAID FOR OUR PROGRAMS, WE CAN NOT BE ABLE TO
  86. MAKE NEW AND BETTER PROGRAMS!!!  PLEASE NOTE THAT AS YOU ARE ENTERING
  87. THE PROGRAM DEVELOPERS WORLD, YOU WOULD BE VERY HAPPY IF YOU GET PAID
  88. FOR YOUR PROGRAMS.  BELIEVE ME!!!
  89.  
  90.  
  91. Lars-Inge Tonnessen
  92. larsit@sn.no
  93.  
  94.  
  95.